home *** CD-ROM | disk | FTP | other *** search
- package Local.Game.Thing
- {
- import Local.Game.World.CAngle;
- import Local.Game.World.CPosition;
- import Local.Math.CRandom;
-
- public class CAircraft extends CThingSprite
- {
-
-
- internal var mNode:CNode;
-
- public function CAircraft(param1:CPosition)
- {
- super();
- mBaseType = "aircraft";
- mAngle = new CAngle();
- mPosition = param1;
- mDelta = new CPosition();
- mRandom = new CRandom(nID);
- zDepth = 110;
- mMaxLife = mLife = 500;
- mTargetAirbourne = true;
- mShowOnMap = true;
- MapAdd();
- }
-
- override public function AffectByExplosion(param1:CThingAffect) : Boolean
- {
- if(super.AffectByExplosion(param1))
- {
- Explode();
- AddSound("vehicle_explosion",Vehicle_Explosion_2);
- PlaySound("vehicle_explosion");
- return true;
- }
- return false;
- }
-
- override public function AffectByBullet(param1:CThingAffect) : Boolean
- {
- if(super.AffectByBullet(param1))
- {
- Explode();
- AddSound("vehicle_explosion",Vehicle_Explosion_2);
- PlaySound("vehicle_explosion");
- return true;
- }
- return false;
- }
- }
- }
-